package com.jt.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by kiktech on 2017/4/25.
 */
@Data
public class SideBar {

    private String name = "sidebar";
    private boolean flatButton = true;
    private List<Node> nodes = new ArrayList<>();


    @Data
    public static class Node {
        private String id;
        private String text;
        private String img = "icon-folder";
        private String icon;
        private Boolean expanded;
        private Boolean group;
        @JsonIgnore
        private String parentSid;

        private List<Node> nodes = new ArrayList<>();
    }

}
